import Layout from '@/layout'
import IframeLayout from '@/layout/iframe'

export default {
    path: '/component_extend_example',
    component: Layout,
    redirect: '/component_extend_example/advertising',
    name: 'componentExtendExample',
    meta: {
        title: '内容合集',
        icon: 'ri-file-list-2-line'

    },
    children: [
        // 广告表单
        {
            path: 'advertising',
            name: 'componentExtendExampleadvertising',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/advertising'),
            meta: {
                title: '广告表单'
            }
        },
        {
            path: 'advertisingupdate',
            name: 'componentExtendExampleadvertisingupdate',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/advertising.update'),
            meta: {
                title: '编辑',
                sidebar: false
            }
        },
        {
            path: 'advertisingadd',
            name: 'componentExtendExampleadvertisingadd',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/advertising.add'),
            meta: {
                title: '新建',
                // auth: ['banner.create']
                sidebar: false
            }
        },
        // 用户管理
        {
            path: 'users',
            name: 'componentExtendExampleUse',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/user'),
            meta: {
                title: '用户管理'
            }
        },
        {
            path: 'usersupdate',
            name: 'componentExtendExampleUserupdate',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/user.update'),
            meta: {
                title: '编辑',
                sidebar: false
            }
        },
        {
            path: 'usersadd',
            name: 'componentExtendExampleUseradd',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/user.add'),
            meta: {
                title: '新建',
                sidebar: false
            }
        },
        // 资讯管理
        {
            path: 'information',
            name: 'componentExtendExampleInformation',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/information'),
            meta: {
                title: '资讯管理'
            }
        },
        {
            path: 'informationupdate',
            name: 'componentExtendExampleInformationupdate',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/information.update'),
            meta: {
                title: '编辑',
                sidebar: false
            }
        },
        {
            path: 'informationadd',
            name: 'componentExtendExampleInformationsadd',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/information.add'),
            meta: {
                title: '新建',
                sidebar: false
            }
        },
        // 树形
        {
            path: 'table',
            name: 'componentExtendExampletreetable',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/treetable'),
            meta: {
                title: '树形'
            }
        },
        {
            path: 'actionbar',
            name: 'componentExtendExampleActionbar',
            component: () => import(/* webpackChunkName: 'component_extend_example' */ '@/views/component_extend_example/actionbar'),
            meta: {
                title: '固定底部操作栏',
                sidebar: false
            }
        },

        {
            path: 'vue-sku-form',
            component: IframeLayout,
            name: 'componentExtendExampleVueSkuForm',
            meta: {
                title: 'vue-sku-form',
                link: 'https://hooray.github.io/vue-sku-form/',
                copyright: false,
                sidebar: false
            }
        }
    ]
}
